make:
	gcc -Wall -c csvlog.c
	#gcc -shared -Wl,-soname,libcsvlog.so -o libcsvlog.so csvlog.o -lc
	ar -cvq libcsvlog.a csvlog.o

test: test.c csvlog.h csvlog.c
	gcc -c csvlog.c
	gcc csvlog.o  test.c -o test -I./ -L./ -lcsvlog

leak:
	valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./test

clean:
	rm -f csvlog.o
	rm -f libcsvlog.a
	rm -f libcsvlog.so
	rm -f log.txt
	rm -f log.csv
	rm -f test
